<template>
    <div>
         
        <keep-alive>
            <medical v-if="type=='医疗保险'" :state="nextType"> </medical>
            <rescueMeidcaUp v-if="type=='紧急医疗'" :name="'紧急医疗'" :state="nextType"> </rescueMeidcaUp>
            <rescueChanger v-if="type=='紧急转院'" :name="'紧急转院'" :state="nextType"> </rescueChanger>
            <rescueReturned v-if="type=='紧急运返'" :name="'紧急运返'" :state="nextType"> </rescueReturned>
            <harmDieUp v-if="type=='意外死亡'" :state="nextType"> </harmDieUp>
            <harmDisabilityUp v-if="type=='意外残疾'" :state="nextType"> </harmDisabilityUp>
            <rescueAccompanyUp v-if="type=='陪同费'" :name="'陪同费'" :state="nextType"> </rescueAccompanyUp>
            <rescueVisitUp v-if="type=='探访费'" :name="'探访费'" :state="nextType"> </rescueVisitUp>
            <rescueInterUp v-if="type=='遗体运返或安葬'" :name="'遗体运返或安葬'" :state="nextType"> </rescueInterUp>
            <studyBreakUp v-if="type=='学业中断'" :state="nextType"> </studyBreakUp>
            <travelDelayUp v-if="type=='旅行延误'" :state="nextType"> </travelDelayUp>
            <travelLoseUp v-if="type=='物品丢失'" :state="nextType" :name="'物品丢失'"> </travelLoseUp>
            <threeUp v-if="type=='个人第三者'" :state="nextType"> </threeUp>
        </keep-alive>
          
    </div>
</template>
<script>

import medical from '@/components/lipei/lipeiaddForm/lipeitaskformMedical'
import rescueMeidcaUp from '@/components/lipei/lipeiaddForm/rescueMeidca'
import rescueChanger from '@/components/lipei/lipeiaddForm/rescueMeidca'
import rescueReturned from '@/components/lipei/lipeiaddForm/rescueMeidca'

import harmDieUp from '@/components/lipei/lipeiaddForm/harmDie'
import harmDisabilityUp from '@/components/lipei/lipeiaddForm/harmDisability'



import rescueAccompanyUp from '@/components/lipei/lipeiaddForm/rescueAccompany'
import rescueVisitUp from '@/components/lipei/lipeiaddForm/rescueVisit'
import rescueInterUp from '@/components/lipei/lipeiaddForm/rescueInter'
import studyBreakUp from '@/components/lipei/lipeiaddForm/studyBreak'
import travelDelayUp from '@/components/lipei/lipeiaddForm/travelDelay'
import travelLoseUp from '@/components/lipei/lipeiaddForm/travelLose'
import threeUp from '@/components/lipei/lipeiaddForm/three'


export default {
    data() {
        return {
            type: "",
            nextType:"查看"
        }
    },
    components: {
        'medical': medical,
        'rescueMeidcaUp': rescueMeidcaUp,
        'rescueChanger': rescueChanger,
        'rescueReturned': rescueReturned,

        'harmDieUp': harmDieUp,
        'rescueMeidcaUp': rescueMeidcaUp,
        'harmDisabilityUp': harmDisabilityUp,


        'rescueAccompanyUp': rescueAccompanyUp,
        'rescueVisitUp': rescueVisitUp,
        'rescueInterUp': rescueInterUp,
        'studyBreakUp': studyBreakUp,
        'travelDelayUp': travelDelayUp,
        'travelLoseUp': travelLoseUp,
        'threeUp': threeUp
    },
    activated() {
        this.nextType= this.$route.query["nextType"];
        this.type = this.$route.query["type"];
    }
}
</script>
   